import {Filter} from "./Filter";
import {Feature, GeoJSONObject} from '@turf/helpers'

export class TypeFilter implements Filter {

    public type: string;

    constructor(type: string) {
        this.type = type;
    }

    filter(feature: Feature): boolean {
        return feature.type == this.type;
    }

}
